/**
 * 
 */
package org.lightmtv.request;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;

/**
 * @author GL
 * 
 * @since 2008-1-10
 */
public interface FileUpload{
	public void delete();
	public byte[] get();
	public String getContentType();
	public String getFieldName();
	public InputStream getInputStream() throws IOException;
	public String getName();
	public String getPerf();
	public String getSuff();
	public String getPath();
	public OutputStream getOutputStream() throws IOException;
	public long getSize();
	public String getString();
	public String getString(String encoding) throws UnsupportedEncodingException;
	public boolean isFormField();
	public boolean isInMemory();
	public void write(File file) throws Exception;
}
